/*
 * Main.java
 *
 * Created on February 5, 2007, 8:52 AM
 *
 * @author Greg Robinson gregarobi@dev.java.net
 */

package pso;

public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int nDimensions = 3;
        int nParticles = 30;
        double[][] spaceSize = {{-20,20},{-20,20},{-20,20}};
        double phi1 = 2.8;
        double phi2 = 1.3;
        Swarm ps = new Swarm(
                nDimensions,
                nParticles,
                spaceSize,
                phi1,
                phi2);
        double [] solution = ps.runAsync(20, 1000);
        System.out.println("Overall best x:"+solution[0]);
        System.out.println("Overall best y:"+solution[1]);
        System.out.println("Overall best z:"+solution[2]);
    }
}
